<template>
  <div>
    <!--<use-platform-config-->
    <!--  title="上传配置"-->
    <!--  config-key="system.package.upload.sync"-->
    <!--  @change="use_platform=$event"-->
    <!--/>-->
    <!--<page-list v-if="use_platform === 0" :x-uri="uri" :custom-components="custom" row-key="__key" :x-tabs="tabs" :doactions="doactions" :checkbox-item="false" :pagination="false" />-->
    <page-list :x-uri="uri" :custom-components="custom" row-key="__key" :x-tabs="tabs" :doactions="doactions" :checkbox-item="false" :pagination="false" />
  </div>
</template>
<script>
import PageList from '@public/template/page_list.vue';
import Status from './components/status';
// import UsePlatformConfig from '@/components/use-platform-config'

export default {
  components: {
    PageList
    // UsePlatformConfig
  },
  data() {
    return {
      uri: '/admin/system/package/upload/list',
      tabs: [
        {
          title: '上传组件',
          uri: '/system/package/upload',
          meta: {
            permission: 'system.package.upload'
          }
        }
      ],
      custom: {
        status: Status
      },
      doactions: [{ title: '配置', meta: { permission: 'system.package.upload' }, callback: this.config }],
      use_platform: 1
    };
  },
  mounted() {
    this.$store.dispatch('setLoading', 0);
  },
  methods: {
    config: function({ row }) {
      this.$router.push({ path: '/system/package/upload/' + row.key + '/config' });
    }
  }
};
</script>
